package models;

import java.util.Date;

import javax.jdo.annotations.Index;
import javax.persistence.Id;

import com.googlecode.objectify.annotation.Indexed;
import com.googlecode.objectify.annotation.NotSaved;
import com.googlecode.objectify.annotation.Unindexed;

public class LinkModel {
	@Id private Long id;
	
	@Unindexed private String name = "";
	
	@Unindexed private String desc = "";
	
	@Unindexed private String url = "";
	
	@Indexed private String creator = "";
	
	@Indexed private long category = 0;
	
	@NotSaved private long lastCategory = 0;
	
	@Unindexed private String keywords = "";
	
	@Unindexed private String metaDesc = "";
	
	@Indexed private boolean published = false;
	
	@Unindexed private String type = "free"; //free, reciprocal, featured
	
	@Unindexed private String urlReciprocal = "";
	
	@Unindexed private String sourceReciprocal = "<a href=\"http://www.linkdirectory.com\">Link directory</a>";
	
	@Indexed private Date created = new Date();
	
	@Indexed private int status = 1; //0-Inactive, 1-Pending, 2-Active
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
	
	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public long getCategory() {
		return category;
	}

	public void setCategory(long category) {
		this.category = category;
	}

	public long getLastCategory() {
		return lastCategory;
	}

	public void setLastCategory(long lastCategory) {
		this.lastCategory = lastCategory;
	}

	public String getKeywords() {
		return keywords;
	}

	public void setKeywords(String keywords) {
		this.keywords = keywords;
	}

	public String getMetaDesc() {
		return metaDesc;
	}

	public void setMetaDesc(String metaDesc) {
		this.metaDesc = metaDesc;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getUrlReciprocal() {
		return urlReciprocal;
	}

	public void setUrlReciprocal(String urlReciprocal) {
		this.urlReciprocal = urlReciprocal;
	}

	public String getSourceReciprocal() {
		return sourceReciprocal;
	}

	public void setSourceReciprocal(String sourceReciprocal) {
		this.sourceReciprocal = sourceReciprocal;
	}

	public Date getCreated() {
		return created;
	}

	public void setCreated(Date created) {
		this.created = created;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public boolean isPublished() {
		return published;
	}

	public void setPublished(boolean published) {
		this.published = published;
	}
}
